import request from '@/utils/request.js'

export default {
  // 生成订单
  createOrder(courseId, memberId){
    return request({
      url: `/eduorder/order/createOrder/${courseId}/${memberId}`,
      method: 'post'
    })
  },

  // 根据订单id查询订单
  getOrderInfo(orderNo){
    return request({
      url: `/eduorder/order/getOrderInfo/${orderNo}`,
      method: 'get',
    })
  },

   //生成微信支付二维码
   createNative(orderNo) {
     return request({
       url: `/eduorder/paylog/createNative/${orderNo}`,
       method:'get'
     })
   },

   queryPayStatus(orderNo) {
     return request({
       url: `/eduorder/paylog/queryPayStatus/${orderNo}`,
       method: 'get'
     })
   }

}
